//
//  MapViewController.h
//  NetMobileLocation
//
//  Created by Mehmet Sinan Şahin on 3/14/12.
//  Copyright (c) 2012 netgis. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@class NGLocation;

@interface AddressAnnotation : NSObject<MKAnnotation> {
    CLLocationCoordinate2D coordinate;
    NSString *mTitle;
    NSString *mSubtitle;
}
@property (nonatomic, copy) NSString *mTitle;
@property (nonatomic, copy) NSString *mSubtitle;

-(id)initWithNGLocation:(NGLocation *) location;
- (NSString*)subtitle;
- (NSString*)title;

@end

@interface MapViewController : UIViewController<MKMapViewDelegate> {
    IBOutlet MKMapView *mapView;
    NGLocation *location;
    AddressAnnotation *addAnnotation;
}

@property (nonatomic, assign) NGLocation *location;

- (IBAction) cancel: (id) sender;

@end
